package com.meme.editor.level.define;

import java.util.List;
import java.util.Vector;

import com.meme.editor.property.Property;
import com.meme.editor.property.PropertyGroupSet;

public class PropertyDefine 
{
	String mName;
	String mValueType;
	String mDefaultValue;
	String mControlType;
	boolean mEditable;
	
	List<Parameter> mParameters;
	
	public PropertyDefine (String name, String valueType, String defaultValue, String controlType, boolean editable)
	{
		mName = name;
		mValueType = valueType;
		mDefaultValue = defaultValue;
		mControlType = controlType;
		mEditable = editable;
	}
	
	public void setDefaultValue (String newDefaultValue)
	{
		mDefaultValue = newDefaultValue;
	}
	
	public String getName ()
	{
		return mName;
	}
	
	public String getValueType ()
	{
		return mValueType;
	}
	
	public String getDefaultValue ()
	{
		return mDefaultValue;
	}
	
	public String getControlType ()
	{
		return mControlType;
	}
	
	public boolean getEditable ()
	{
		return mEditable;
	}
	
	public void addParamters (List<Parameter> paramList)
	{
		if (mParameters == null)
			mParameters = new Vector<Parameter> ();
		
		mParameters.addAll (paramList);
	}
	
	public List<Parameter> getParameters ()
	{
		return mParameters;
	}
}
